package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.RecommendUser;

import java.util.List;

//推荐服务的公共接口
public interface RecommendUserApi {

    //根据toUserId查询Score最高的用户
    RecommendUser queryWithMaxScore(Long toUserId);

    //根据toUserId分页查询
    List<RecommendUser> queryRecommendUserList(Integer page, Integer pagesize, Long toUserId);

    //根据userId和toUserId查询推荐数据
    RecommendUser queryByUserId(Long userId, Long toUserId);

    void delete(Long userId, Long likeUserId);
}
